import time
import plugin
import config

import os
import sys
import util        

FILE_PATH = sys.argv[0]
PLUGINS_FOLDER = config.PLUGINS_FOLDER
PARENT = None
SHOULD_WAIT = True
PLUGIN_NAME = "init"

if __name__ == "__main__":
    print "Starting services plugin ... {0}".format(__file__)
    server = util.startServer()
    util.start_plugin_service()
    
    init_plugin = util.ParentPlugin(PARENT,__file__,PLUGIN_NAME)
    print "About to load plugins for init..."
    server.connect(init_plugin,PLUGIN_NAME)
    util.load_plugins(server,init_plugin, PLUGINS_FOLDER, PARENT , SHOULD_WAIT)

    
    
                                       

                                   


